import './assets/css/base.css'
import './assets/fonts/iconfont.css'


import { createApp } from 'vue'


import {
    Button, Tab, Tabs, Icon, Sticky, Search, Swipe, SwipeItem, Skeleton, SkeletonTitle, SkeletonImage, SkeletonAvatar, SkeletonParagraph, Tabbar, TabbarItem, TextEllipsis, Popup , IndexBar, IndexAnchor, ShareSheet, ActionBar, ActionBarIcon, ActionBarButton, AddressList, AddressEdit, Dialog, List
} from 'vant';


import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import LongPress from './function/longpress'

const app = createApp(App)

app.use(createPinia())
app.use(router).use(Button).use(Sticky).use(Search).use(Tab).use(Tabs).use(Swipe).use(SwipeItem).use(Skeleton).use(SkeletonTitle).use(SkeletonImage).use(SkeletonAvatar).use(SkeletonParagraph).use(Tabbar).use(TabbarItem).use(TextEllipsis).use(Popup).use(IndexBar).use(IndexAnchor).use(Icon).use(ShareSheet).use(ActionBar).use(ActionBarIcon).use(ActionBarButton).use(AddressList).use(AddressEdit).use(Dialog).use(List);

app.directive('longPress' , LongPress)

app.mount('#app')
